package com.ty.service;

import com.ty.entity.PermissionsQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ty.entity.Permissions;
import com.ty.dao.PermissionsDao;
import com.ty.service.PermissionsService;

import java.util.List;

/**
 * ;(212_permissions)表服务实现类
 * @author : heimi
 * @date : 2025-6-13
 */
@Service
public class PermissionsService{
     
    @Autowired
    private PermissionsDao permissionsDao;
    
    public List<Permissions> select(PermissionsQuery query) {
        return permissionsDao.select(query);
    }
    
    public Integer insert(Permissions permissions) {
        return permissionsDao.insert(permissions);
    }
    
    public Integer update(Permissions permissions) {
        return permissionsDao.update(permissions);
    }
    
    public Integer delete(Integer id) {
        return permissionsDao.delete(id);
    }
    
}